package com.zyb.warehouse.service.impl;

import com.zyb.warehouse.entity.Supply;
import com.zyb.warehouse.mapper.SupplyMapper;
import com.zyb.warehouse.service.SupplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:供应商业务层接口
 */
@Service
public class SupplyServiceImpl implements SupplyService {

    @Autowired
    private SupplyMapper supplyMapper;

    /**
     * 查询所有供应商
     *
     * @return
     */
    public List<Supply> queryAllSupply() {
        return supplyMapper.selectAllSupply();
    }
}
